package cn.com.elite.httpclient;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class Test {
	public static void main(String[] args) throws Exception{
		HttpConnection httpConnection=new HttpConnection();
		List params=new ArrayList(); 
		NameValuePair pair1=new BasicNameValuePair("toaddress","tonyxu@elitecrm.com");  
	    NameValuePair pair2=new BasicNameValuePair("subject","测试TEST");  
	    NameValuePair pair3=new BasicNameValuePair("context","测试TEST");  
	    params.add(pair1);  
	    params.add(pair2);
	    params.add(pair3);
	    String url="http://210.51.38.210:80/EliteDayReportMail/servlet/MailService";
//	    String url="http://127.0.0.1:8080/EliteDayReportMail/servlet/MailService";
	    httpConnection.getConnectionResponse(url, params);
	}

}
